import httpRequest from '@/utils/httpRequest'
import constant from './../constant'

export function rulePage (data) {
  return httpRequest({
    url: constant.DR + '/rule/version/manage/rulePage',
    method: 'post',
    data: data
  })
}
export function flowPage (data) {
  return httpRequest({
    url: constant.DR + '/rule/version/manage/flowPage',
    method: 'post',
    data: data
  })
}
export function ruleAudit (data) {
  return httpRequest({
    url: constant.DR + '/rule/version/manage/ruleAudit',
    method: 'post',
    data: data
  })
}
export function flowAudit (data) {
  return httpRequest({
    url: constant.DR + '/rule/version/manage/flowAudit',
    method: 'post',
    data: data
  })
}
export function flowCompare (data) {
  return httpRequest({
    url: constant.DR + '/rule/version/manage/flowCompare',
    method: 'post',
    data: data
  })
}
export function ruleGroupCompare (data) {
  return httpRequest({
    url: constant.DR + '/rule/version/manage/ruleGroupCompare',
    method: 'post',
    data: data
  })
}
export function onlineFlow (data) {
  return httpRequest({
    url: constant.DR + '/rule/version/manage/onlineFlow',
    method: 'post',
    data: data
  })
}
export function onlineRule (data) {
  return httpRequest({
    url: constant.DR + '/rule/version/manage/onlineRule',
    method: 'post',
    data: data
  })
}
export function flowDetail (data) {
  return httpRequest({
    url: constant.DR + '/rule/version/manage/flowDetail',
    method: 'post',
    data: data
  })
}
export function groupDetail (data) {
  return httpRequest({
    url: constant.DR + '/rule/version/manage/groupDetail',
    method: 'post',
    data: data
  })
}

export function taskAuditPage (data) {
  return httpRequest({
    url: constant.DR + '/rule/version/task/queryAudit',
    method: 'post',
    data: data
  })
}
export function taskAudit (data) {
  return httpRequest({
    url: constant.DR + '/rule/version/task/taskAudit',
    method: 'post',
    data: data
  })
}
export function taskPage (data) {
  return httpRequest({
    url: constant.DR + '/rule/version/task/rulePage',
    method: 'post',
    data: data
  })
}
export function taskSave (data) {
  return httpRequest({
    url: constant.DR + '/rule/version/task/save',
    method: 'post',
    data: data
  })
}
export function deleteTask (data) {
  return httpRequest({
    url: constant.DR + '/rule/version/task/deleteTask',
    method: 'post',
    data: data
  })
}
// 点击进入查看
export function taskDetail (data) {
  return httpRequest({
    url: constant.DR + '/rule/version/task/taskDetail',
    method: 'post',
    data: data
  })
}
export function taskUpdate (data) {
  return httpRequest({
    url: constant.DR + '/rule/version/task/update',
    method: 'post',
    data: data
  })
}
export function checkClash (data) {
  return httpRequest({
    url: constant.DR + '/rule/version/task/checkClash',
    method: 'post',
    data: data
  })
}
export function saveAudit (data) {
  return httpRequest({
    url: constant.DR + '/rule/version/task/saveAudit',
    method: 'post',
    data: data
  })
}
// 发布
export function publishTask (data) {
  return httpRequest({
    url: constant.DR + '/rule/version/task/publishTask',
    method: 'post',
    data: data
  })
}
export function clashDetail (data) {
  return httpRequest({
    url: constant.DR + '/rule/version/task/clashDetail',
    method: 'post',
    data: data
  })
}
// 确认冲突
export function confirmClash (data) {
  return httpRequest({
    url: constant.DR + '/rule/version/task/confirmClash',
    method: 'post',
    data: data
  })
}
// 测试流转按钮
export function testStatus (data) {
  return httpRequest({
    url: constant.DR + '/rule/version/task/testStatus',
    method: 'post',
    data: data
  })
}